package io.renren.modules.gis_admin.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.renren.common.validator.group.DefaultGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import java.io.Serializable;
import java.util.Date;


/**
 * 图层管理
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2022-11-05
 */
@Data
@ApiModel(value = "图层管理")
public class MapLayersDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "id")
	private Long id;

	@ApiModelProperty(value = "图层展示名称")
	private String displayName;

	@ApiModelProperty(value = "图层名称")
	private String layerName;

	@ApiModelProperty(value = "图层URL地址")
	private String layerUrl;

	@ApiModelProperty(value = "图层类型")
	private String layerType;

	@ApiModelProperty(value = "图层分类")
	private String layerClassification;

	@ApiModelProperty(value = "创建者")
	private Long creator;

	@ApiModelProperty(value = "创建时间")
	@JsonProperty(access = JsonProperty.Access.READ_ONLY)
	private Date createDate;

	@ApiModelProperty(value = "更新者")
	private Long updater;

	@ApiModelProperty(value = "更新时间")
	@JsonProperty(access = JsonProperty.Access.READ_ONLY)
	private Date updateDate;

	@ApiModelProperty(value = "排序")
	@Min(value = 0, message = "{sort.number}")
	private Integer sort;
}